{% extends "_layout.html" %}
{% import "component/statistics.njk" as statistics %}

{# 样式代码 #}
{% block style %}
<title>课件详情</title>
<style>
    body{overflow-x:hidden;}
    #content img{width:100% !important;}
</style>
{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="mui-content">
    <div class="mb-homework">
        <div class="mb-zy-tj mb-homeworklist">
            <!--课件详情-->
            <div class="mb-task-list mb-homeworks tc-prepare">
                <div class="mb-home-task tc-prepare-tit">
                    {{data.courseName}} <em> - 课件</em>
                </div>
                <div class="mb-item-work tc-item">
                    <span class="mb-item-count">关联知识点：<span> {{data.name}}</span></span>
                </div>
                <div class="mb-item-work tc-item">
							<span class="mb-item-count">授课班级：
								<span>
                                    {{data.gradeName}}
								</span>
							</span>
                </div>
                <div class="mb-item-work tc-item">
                    <span class="mb-item-count">课时分配：<span>2018-03-10至2018-03-13<span class="tc-knowledge mui-pull-right">共计3课时</span></span></span>
                </div>
                <div id="content"class="mb-item-work tc-item" style="word-break: break-all">
                    {{data.content}}
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{#js代码#}
{% block js %}
<script src="js/jquery-2.1.1.min.js" type="text/javascript" charset="utf-8"></script>
<script>
    var data = $("#content").html();
    var data1 = data.replace(/&lt;/g,'<');
    var data2 = data1.replace(/&gt;/g,'>');
    $("#content").html(data2);
</script>
<!--flotdemo-->
{% endblock %}
